//
//  ZMConst.h
//  DaMei
//
//  Created by mac on 16/2/21.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>

/** NSLog 输出宏*/

#ifdef DEBUG
#define NSLog(FORMAT, ...) fprintf(stderr,"%s:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#else
#define NSLog(...)
#endif


//#ifdef DEBUG
//#define NSLog(...) NSLog(__VA_ARGS__)
//#else
//#define NSLog(...)
//#endif
/** 配置颜色宏*/
#define ZMColor(r,g,b) [UIColor colorWithRed:(r) / 255.0 green:(g) / 255.0 blue:(b) / 255.0 alpha:1]

/** 全局颜色值*/
#define ZMGlobalColor ZMColor(230,230,230)


/** 通知中心*/
#define ZMNotificationCenter [NSNotificationCenter defaultCenter]

// 城市通知
extern NSString *const ZMCityDidChangeNotifacation;
extern NSString *const ZMSelectCityName;

// 分类通知
extern NSString *const ZMCategoryDidChangeNotifacation;
extern NSString *const ZMSelectCategoryModel;
extern NSString *const ZMSelectCategorySubtitle;

// 区域通知
extern NSString *const ZMDistrictDidChangeNotifacation;
extern NSString *const ZMSelectDistrictModel;
extern NSString *const ZMSelectDistrictSubtitle;

// 排序通知
extern NSString *const ZMSortDidChangeNotifacation;
extern NSString *const ZMSelectSortModel;

// 收藏改变的通知
extern NSString *const ZMCollectDidChangeNotification;



